package com.ruoyi.jihuo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.jihuo.domain.JhTmGoods;

import java.util.List;

public interface IJhTmGoodsService extends IService<JhTmGoods> {
    public JhTmGoods selectJhTmGoodsByJhId(String jhId);

    public JhTmGoods insertJhTmGoods(JhTmGoods jhTmGoods);

    public int insertJhTmGoodsByJson(String itemJson, Long jhTmUploadDataId);

    public List<JhTmGoods> selectJhTmGoodsListByPackageId(Long jhTmUploadDataId);

    boolean existsInRecentMonths(String id, int months);

    JhTmGoods convertJsonToGoods(String itemJson, Long jhId);

    List<JhTmGoods> selectJhTmGoodsByJhItemIdOrderByDesc(String itemId);
}
